﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.Web;

namespace Streaming_Service {
    public class RentIt11Factory : ServiceHostFactory {
        protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses) {
            var host = new ServiceHost(serviceType, baseAddresses);

            RentIt11.BaseUrl = baseAddresses[0].ToString().Replace("RentIt11.svc",""); // assuming you want the first endpoint address.

            return host;
        }
    }
}